//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hustcad.plm.pdm.iba.model.dto;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Primary;

import java.util.ArrayList;
import java.util.List;

@Primary
@AllArgsConstructor
public class TyplmQueryIbaDTO {
    @ApiParam("待查询iba对象otype")
    private String otype;
    @ApiParam("待查询iba对象的oid集合")
    private List<TyplmObjOidAndLogicalDTO> oidAndLogicalList;
    @ApiParam("是否适配rpm")
    private Boolean isAdapter = false;

    public TyplmQueryIbaDTO() {
        this.oidAndLogicalList = new ArrayList<>();
    }

    public String getOtype() {
        return this.otype;
    }

    public List<TyplmObjOidAndLogicalDTO> getOidAndLogicalList() {
        return this.oidAndLogicalList;
    }

    public Boolean getIsAdapter() {
        return this.isAdapter;
    }

    public void setOtype(final String otype) {
        this.otype = otype;
    }

    public void setOidAndLogicalList( List<TyplmObjOidAndLogicalDTO> oidAndLogicalList) {
        this.oidAndLogicalList = oidAndLogicalList;
    }

    public void setIsAdapter(final Boolean isAdapter) {
        this.isAdapter = isAdapter;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TyplmQueryIbaDTO)) {
            return false;
        } else {
            TyplmQueryIbaDTO other = (TyplmQueryIbaDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$isAdapter = this.getIsAdapter();
                    Object other$isAdapter = other.getIsAdapter();
                    if (this$isAdapter == null) {
                        if (other$isAdapter == null) {
                            break label47;
                        }
                    } else if (this$isAdapter.equals(other$isAdapter)) {
                        break label47;
                    }

                    return false;
                }

                Object this$otype = this.getOtype();
                Object other$otype = other.getOtype();
                if (this$otype == null) {
                    if (other$otype != null) {
                        return false;
                    }
                } else if (!this$otype.equals(other$otype)) {
                    return false;
                }

                Object this$oidAndLogicalList = this.getOidAndLogicalList();
                Object other$oidAndLogicalList = other.getOidAndLogicalList();
                if (this$oidAndLogicalList == null) {
                    if (other$oidAndLogicalList != null) {
                        return false;
                    }
                } else if (!this$oidAndLogicalList.equals(other$oidAndLogicalList)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof TyplmQueryIbaDTO;
    }

    public int hashCode() {
        int result = 1;
        Object $isAdapter = this.getIsAdapter();
        result = result * 59 + ($isAdapter == null ? 43 : $isAdapter.hashCode());
        Object $otype = this.getOtype();
        result = result * 59 + ($otype == null ? 43 : $otype.hashCode());
        Object $oidAndLogicalList = this.getOidAndLogicalList();
        result = result * 59 + ($oidAndLogicalList == null ? 43 : $oidAndLogicalList.hashCode());
        return result;
    }

    public String toString() {
        return "TyplmQueryIbaDTO(otype=" + this.getOtype() + ", oidAndLogicalList=" + this.getOidAndLogicalList() + ", isAdapter=" + this.getIsAdapter() + ")";
    }
}
